.class public Lcom/waiqin365/base/triallogin/a/a;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Ljava/util/ArrayList;

.field private b:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/a/a;->a:Ljava/util/ArrayList;

    iput-object p1, p0, Lcom/waiqin365/base/triallogin/a/a;->b:Landroid/content/Context;

    return-void
.end method


# virtual methods
.method public a(Ljava/util/ArrayList;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/a/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/a/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/a/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/a/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/a/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;

    if-nez p2, :cond_0

    iget-object v1, p0, Lcom/waiqin365/base/triallogin/a/a;->b:Landroid/content/Context;

    const v2, 0x7f030279

    invoke-static {v1, v2, v3}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v2, Lcom/waiqin365/base/triallogin/a/c;

    invoke-direct {v2, p0, v3}, Lcom/waiqin365/base/triallogin/a/c;-><init>(Lcom/waiqin365/base/triallogin/a/a;Lcom/waiqin365/base/triallogin/a/b;)V

    const v1, 0x7f0c0c34

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v2, Lcom/waiqin365/base/triallogin/a/c;->a:Landroid/widget/ImageView;

    const v1, 0x7f0c0c36

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v2, Lcom/waiqin365/base/triallogin/a/c;->b:Landroid/widget/TextView;

    const v1, 0x7f0c0c35

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v2, Lcom/waiqin365/base/triallogin/a/c;->c:Landroid/widget/ImageView;

    invoke-virtual {p2, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v1, v2

    :goto_0
    iget-object v2, p0, Lcom/waiqin365/base/triallogin/a/a;->b:Landroid/content/Context;

    invoke-static {v2}, Lcom/fiberhome/gaea/client/d/f;->a(Landroid/content/Context;)Lcom/fiberhome/gaea/client/d/f;

    move-result-object v2

    iget-object v3, v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/fiberhome/gaea/client/d/f;->b(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/base/triallogin/a/c;->a:Landroid/widget/ImageView;

    invoke-virtual {v2, v3}, Lcom/squareup/picasso/RequestCreator;->into(Landroid/widget/ImageView;)V

    iget-object v2, v1, Lcom/waiqin365/base/triallogin/a/c;->b:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-boolean v0, v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;->d:Z

    if-eqz v0, :cond_1

    iget-object v0, v1, Lcom/waiqin365/base/triallogin/a/c;->c:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_1
    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/base/triallogin/a/c;

    goto :goto_0

    :cond_1
    iget-object v0, v1, Lcom/waiqin365/base/triallogin/a/c;->c:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_1
.end method
